Skip to main content

PadLeft

PadLeft[list,n] makes a list of length n by padding list with zeros on the left. 

PadLeft[list,n,x] pads by repeating the element x.

PadLeft[list,n,{x1,x2,…}] pads by cyclically repeating the elements xi.

PadLeft[list,n,padding,m] leaves a margin of m elements of padding on the right.

PadLeft[list,{n1,n2,…}] makes a nested list with length ni at level i.

PadLeft[list] pads a ragged array list with zeros to make it full.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.